import myAxios from "../MyAxios";
import BASEURL from "../BaseUrl";
import BaseUrl from "../BaseUrl";
const MovieApi = {
  //添加电影接口/movie-info/add
  add(params) {
    return myAxios.post(BASEURL + "/movie-info/add", params);
  },
  listAllMovieTypes(params) {
    return myAxios.get(BASEURL + "/movie-types", params);
  },
  list(params) {
    return myAxios.get(BASEURL + "/movie-infos", params);
  },
  listByName(params) {
    return myAxios.post(BASEURL + "/movie-infos/name", params);
  },
  del(params) {
    return myAxios.post(BASEURL + "/movie-info/del", params);
  },
  queryById(params) {
    return myAxios.get(BASEURL + "/movie-info/sel", params);
  },
  update(params) {
    return myAxios.post(BASEURL + "/movie-info/update", params);
  },
  bindActors(params) {
    return myAxios.post(BASEURL + "/movie-info/bind-actors", params);
  },
};
export default MovieApi;
